package ch04.home;
class  Exercise4_09 {
	public static void main(String[] args) {
		String str = "12345";
		int sum = 0;

		for(int i=0; i < str.length(); i++) 
			//<1
			sum += str.charAt(i) - '0';		
		    //1>
		System.out.println("sum="+sum); // sum=15
	}
}
